package com.ktjiaoyu.crm.entity;

import javax.persistence.*;
import java.io.Serializable;


@Entity
@Table(name = "sys_user")
@NamedQueries(@NamedQuery(name = "User.findUsersByName",
        query = "select u from User u where u.usrName = ?1"))
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long usrId;

    /**
     * 姓名
     */
    private String usrName;

    /**
     * 密码
     */
    private String usrPassword;

    /**
     * 角色编号
     */
    private Long usrRoleId;

    /**
     * 状态
     */
    private Long usrFlag;

    public void SysUser(String usrName, String usrPassword, Long usrRoleId, Long usrFlag) {
        this.usrName = usrName;
        this.usrPassword = usrPassword;
        this.usrRoleId = usrRoleId;
        this.usrFlag = usrFlag;
    }
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    @Column(name = "usr_id")
//    private Long usrId;
//    @Column(name = "usr_name")
//    private String usrName;
//    @Column(name = "usr_password")
//    private String usrPassword;
//    @Column(name = "usr_role_id")
//    private Long usrRoleId;
//    @Column(name = "usr_flag")
//    private Integer usrFlag;  //省略构造方法和Setter/Getter

    public User(String jpa, String s, long l, int i) {
    }

    public void setUsrId(Long usrId) {
        this.usrId = usrId;
    }

//    public Integer getUsrFlag() {
//        return usrFlag;
//    }

    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    public Long getUsrId() {
        return usrId;
    }

//    public void setUsrFlag(Integer usrFlag) {
//        this.usrFlag = usrFlag;
//    }

    public String getUsrName() {
        return usrName;
    }

    public void setUsrPassword(String usrPassword) {
        this.usrPassword = usrPassword;
    }

    public Long getUsrRoleId() {
        return usrRoleId;
    }

    public void setUsrRoleId(Long usrRoleId) {
        this.usrRoleId = usrRoleId;
    }

    public String getUsrPassword() {
        return usrPassword;
    }
//    public String getUsrName() {
//    }

//    public String getUsrName() {
//    }
}
